package com.voute.Model.Impl;

import com.voute.Api.PushNotificationService;
import com.voute.Model.Bean.BaseBean;
import com.voute.Model.Bean.SimpleNotificationBean;
import com.voute.Model.Bean.UnreadNotificationBean;
import com.voute.Model.IPushNotificationModel;
import com.voute.Utils.ServiceFactory;

import rx.Observable;

/**
 * Created by xianke on 22/04/2017.
 */

public class PushNotificationMoImpl implements IPushNotificationModel {
    @Override
    public Observable<SimpleNotificationBean> requestPushNotifications(String page) {
        return ServiceFactory.GetInstance().createService(PushNotificationService.class).requestPushNotifications(page);
    }

    @Override
    public Observable<UnreadNotificationBean> requestUnreadNotificationNum() {
        return ServiceFactory.GetInstance().createService(PushNotificationService.class).requestUnreadNotificationNum();
    }

    @Override
    public Observable<BaseBean> setAllNessageReaded() {
        return ServiceFactory.GetInstance().createService(PushNotificationService.class).setAllNessageReaded();
    }
}
